cody - HTMLify profile

cody
4270 Files
632708 Views
Latest files of /cody/swapnilsparsh/30DaysOfJavaScript/03 - Random Color Generator
window.onload = function () {
addColor();
};
for (let i = 1; i <= 9; i++) {
const box = document.createElement('div');
box.classList.add('box');
document.querySelector('.container').appendChild(box);
addColor();
};
for (let i = 1; i <= 9; i++) {
const box = document.createElement('div');
box.classList.add('box');
document.querySelector('.container').appendChild(box);
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: "sans";
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: "sans";
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Random Color Generator</title>
<link rel="stylesheet" href="style.css" />
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Random Color Generator</title>
<link rel="stylesheet" href="style.css" />